@echo off

for /f "tokens=*" %%i in ('CALL .\xpath0.1.bat pom.xml "/project/version"') do set version=%%i
ECHO version=%version%

DEL /S/Q .\out

MKDIR .\out\server\platform\common\libs

COPY .\rest-api-jit-api\target\rest-api-jit-api-%version%.jar .\out\server\platform\common\libs\jit-api.jar
COPY .\rest-api-jit-core\target\rest-api-jit-core-%version%.jar .\out\server\platform\common\libs\jit-core.jar
COPY .\rest-api-jit-spi\target\rest-api-jit-spi-%version%.jar .\out\server\platform\common\libs\jit-spi.jar

::pause
